ABC356D - Masked Popcount